package org.example.service;

import org.example.model.PageResult;
import org.example.model.ProductMessage;
import org.example.request.LockProductRequest;
import org.example.util.JsonData;
import org.example.vo.ProductVO;

import java.util.List;

public interface ProductService {
    PageResult page(int page, int size);

    ProductVO findById(Long productId);

    List<ProductVO> findProductsByIdBatch(List<Long> productIdList);

    JsonData lockProductStock(LockProductRequest lockProductRequest);

    boolean releaseProductStock(ProductMessage productMessage);
}
